package com.medical.admin.cost.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 科室表
 */
@Data
@TableName(value = "mar_department")
public class Department {
    public static final String COL_PATIENT_ID = "patient_id";
    public static final String COL_INDENT_ID = "indent_id";
    /**
     * 科室ID
     */
    @TableId(value = "department_id", type = IdType.ASSIGN_ID)
    private Long departmentId;

    /**
     * 科室名称
     */
    @TableField(value = "department_name")
    private String departmentName;

    /**
     * 院区ID
     */
    @TableField(value = "hospital_id")
    private Long hospitalId;

    /**
     * 上级科室ID
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 科室
     */
    @TableField(value = "department_address")
    private String departmentAddress;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 0 删除 1 可用
     */
    @TableField(value = "`state`")
    private Integer state;

    public static final String COL_DEPARTMENT_ID = "department_id";

    public static final String COL_DEPARTMENT_NAME = "department_name";

    public static final String COL_HOSPITAL_ID = "hospital_id";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_DEPARTMENT_ADDRESS = "department_address";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_STATE = "state";
}